package com.wuxiaofan.search.entity;

import lombok.Data;
import org.zxp.esclientrhl.annotation.ESID;
import org.zxp.esclientrhl.annotation.ESMapping;
import org.zxp.esclientrhl.annotation.ESMetaData;
import org.zxp.esclientrhl.enums.DataType;

/**
 * @author wuxiaofan
 * @date 2021/7/26 5:36 下午
 */
@Data
@ESMetaData(indexName = "user",number_of_shards = 3,number_of_replicas = 0,printLog = true)
public class User {

    @ESID
    private String id;
    @ESMapping(datatype = DataType.text_type)
    private String name;
    @ESMapping(datatype = DataType.text_type)
    private String desc;
    @ESMapping(datatype = DataType.keyword_type)
    private String selfIntroduction;

}
